Nevron .NET Vision
Nevron.GraphicsCore Namespace / NPointDList Class / GetNearestPoint Method / GetNearestPoint(IList<NPointD>,NPointD) Method


In This Topic
    GetNearestPoint(IList<NPointD>,NPointD) Method
    In This Topic
    Gets the point in the list, which is nearest to the specified point. If the list is empty returns the point itself
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetNearestPoint( _
       ByVal points As System.Collections.Generic.IList(Of NPointD), _
       ByVal pt As NPointD _
    ) As NPointD
    'Usage
     
    
    Dim points As System.Collections.Generic.IList(Of NPointD)
    Dim pt As NPointD
    Dim value As NPointD
     
    value = NPointDList.GetNearestPoint(points, pt)
    public static NPointD GetNearestPoint( 
       System.Collections.Generic.IList<NPointD> points,
       NPointD pt
    )

    Parameters

    points
    pt
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also